const brandCloudObj = uniCloud.importObject('my-mall-brand');
const brand = {
	state: {
		brandData: {

		}
	},
	mutations: {
		set_brand(state, value) {
			state.brandData = value
		}
	},
	actions: {
		async getBrandData(context) {
			let keysArr = Object.keys(context.state.brandData)
			if (keysArr.length) return;
			let res = await brandCloudObj.get();
			context.commit('set_brand', res.data[0])
		}
	}
}

export default brand;